﻿using MongoDB.Bson.Serialization.Attributes;
using System;
using System.ComponentModel.DataAnnotations;

namespace AppSocketModel
{
    /// <summary>
    /// 系统管理员账户模型
    /// </summary>
    [BsonIgnoreExtraElements]
    public class SystemAccountRegisterDto
    {

        /// <summary>
        /// 账户角色
        /// </summary>
        [Required(ErrorMessage = "账户角色")]
        public AccountRole accountRole { set; get; }

        /// <summary>
        /// 系统账户号
        /// </summary>
        [Required(ErrorMessage = "系统账户号")]
        public string SystemAccountCode { set; get; }


        /// <summary>
        /// 账号名
        /// </summary>
        [Required(ErrorMessage = "账号名")]
        public string AccountName { set; get; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required(ErrorMessage = "密码")]
        public string Password { set; get; }


    }
}
